<script lang="ts" setup>

</script>
<template>
  <div class="lates-topic">
    <div class="latest">
      <div class="latest-top">
        <h3 class="latest-title">最新专题</h3>
        <a class="latest-all" href="javascript:;">查看全部 ></a>
      </div>
      <div class="latest-buttom">
        <div class="latest-buttom-item">
          <a class="latest-img-conent" href="javascript:;">
            <img class="img-data" src="../../../images/topic_goods_3.jpg" alt="">
            <div class="latest-mast">
              <p class="latest-mast-title">今天是不是很不舒服呀哈<span class="latest-mast-span">你怎么什么都知道啊</span></p>
              <span class="latest-mast-price"><i class="latest-price-i">￥</i>20.74起</span>
            </div>
          </a>
          <div class="latest-buttom-message">
            <span class="latest-like"><i class="iconfont icon-24gl-heart"></i>175</span>
            <span class="latest-view"><i class="iconfont icon-yanjing"></i>433</span>
            <span class="latest-reply"><i class="iconfont icon-xiaoxi"></i></span>
          </div>
        </div>
        <div class="latest-buttom-item">
          <a class="latest-img-conent" href="javascript:;">
            <img class="img-data" src="../../../images/topic_goods_3.jpg" alt="">
            <div class="latest-mast">
              <p class="latest-mast-title">今天是不是很不舒服呀哈<span class="latest-mast-span">你怎么什么都知道啊</span></p>
              <span class="latest-mast-price"><i class="latest-price-i">￥</i>20.74起</span>
            </div>
          </a>
          <div class="latest-buttom-message">
            <span class="latest-like"><i class="iconfont icon-24gl-heart"></i>175</span>
            <span class="latest-view"><i class="iconfont icon-yanjing"></i>433</span>
            <span class="latest-reply"><i class="iconfont icon-xiaoxi"></i></span>
          </div>
        </div>
        <div class="latest-buttom-item">
          <a class="latest-img-conent" href="javascript:;">
            <img class="img-data" src="../../../images/topic_goods_3.jpg" alt="">
            <div class="latest-mast">
              <p class="latest-mast-title">今天是不是很不舒服呀哈<span class="latest-mast-span">你怎么什么都知道啊</span></p>
              <span class="latest-mast-price"><i class="latest-price-i">￥</i>20.74起</span>
            </div>
          </a>
          <div class="latest-buttom-message">
            <span class="latest-like"><i class="iconfont icon-24gl-heart"></i>175</span>
            <span class="latest-view"><i class="iconfont icon-yanjing"></i>433</span>
            <span class="latest-reply"><i class="iconfont icon-xiaoxi"></i></span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
@import url(../font_4188455_ctxfvlx7wta/iconfont.css);
.iconfont {
  display: inline-block;
  width: 15px;
  height: 14px;
  margin-right: 7px;
  color: #999;
}
.lates-topic {
  width: 100%;
  background-color: #f5f5f5;
  padding-bottom: 52px;
}
.latest {
  width: 1240px;
  margin: 0 auto;
}
.latest-top {
  height: 115px;
  padding: 40px 0;
}
.latest-title {
  height: 35px;
  line-height: 35px;
  margin-left: 6px;
  font-size: 32px;
  font-weight: 400;
  color: #333;
  float: left;
}
.latest-all {
  line-height: 1;
  margin-top: 14px;
  font-size: 16px;
  color: #999;
  float: right;
  &:hover {
     color: #17bb9b;
  }
}
.latest-buttom {
  display: flex;
  justify-content: space-between;
}
.latest-buttom-item {
  width: 406px;
  margin-left: 11px;
  transition: .5s;
  float: left;
  background: #fff;
  &:hover {
        transform: scale(1.02);
      }
}
.latest-img-conent {
  height: 287px;
  display: inline-block;
  position: relative;
}
.img-data {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}
.latest-buttom-message {
  height: 70px;
  line-height: 70px;
  padding: 0 20px;
  font-size: 16px;
}
.latest-like {
  float: left;
  margin-right: 25px;
  vertical-align: middle;
}
.latest-view {
  float: left;
  margin-right: 25px;
  vertical-align: middle;
}
.latest-reply {
  float: right;
  vertical-align: middle;
}
.latest-mast {
  width: 100%;
  height: 100%;
  color: #fff;
  background-image: linear-gradient(0deg,rgba(0,0,0,.8),transparent 50%);
  position: absolute;
  bottom: 0;
}

.latest-mast-title {
  height: 70px;
  padding-left: 16px;
  font-size: 22px;
  position: absolute;
  bottom: 0;
}
.latest-mast-span {
  display: block;
  font-size: 19px;
  color: #999;
}
.latest-mast-price {
  position: absolute;
  bottom: 25px;
  right: 16px;
  display: block;
  line-height: 1;
  padding: 4px 8px 4px 7px;
  color: #cf4444;
  font-size: 17px;
  background-color: #fff;
  border-radius: 2px;
}
.latest-price-i {
  font-size: 15px;
}
</style>
